package com.ishansong.ticket.service;

import com.ishansong.ticket.exception.ServiceDaoException;
import com.ishansong.ticket.exception.ServiceException;
import com.ishansong.ticket.model.${mo};

public interface ${mo}Service {



	/**
	 * 
	 * @param id
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	public ${mo} get${mo}(Long id) throws ServiceDaoException, ServiceException;

	/**
	 *
	 * @param ${mop}
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	public Long save${mo}(${mo} ${mop}) throws ServiceDaoException, ServiceException;

	/**
	 *
	 * @param ${mop}
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	public void update${mo}(${mo} ${mop}) throws ServiceDaoException, ServiceException;

    /**
     *
     * @param id
     * @return
     * @throws ServiceDaoException
     * @throws ServiceException
     */
	public Boolean delete${mo}(Long id) throws ServiceDaoException, ServiceException;


}
